<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;

/* @var $this yii\web\View */
/* @var $searchModel backend\models\PreAdminInformationSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '信息发布';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="pre-admin-information-index">

    <div class="row">
         <div class="col-md-12">
         <h1 class="page-header">
              信息发布 <small>Information Release</small>
         </h1>
         </div>
  </div> 

  <ol class="breadcrumb">
  <li>信息发布</li>
  <li><a href=<?php echo  Url::to(['pre-admin-information/index'])?>>信息列表</a></li>
</ol>

    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <p>
        <?= Html::a('创建新信息', ['create'], ['class' => 'btn btn-success']) ?>
    </p>
    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'Info_id',
            'Info_url:url',
            'Info_time',
            'Info_type',
            'Info_title',
             'Info_content:ntext',
            // 'status',
            // 'uid',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>
</div>
